//
//  UILabelButton.m
//  UILabelButtonAndUIImageViewButton
//
//  Created by mafeng on 16/7/18.
//  Copyright © 2016年 mafeng. All rights reserved.
//

#import "UILabelButton.h"

@implementation UILabelButton
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.userInteractionEnabled = YES;
    }
    return self;
}
- (void)addTarget:(nullable id)target action:(nonnull SEL)action {
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:target action:action];
    [self addGestureRecognizer:tap];
}
@end
